package com.zc.mall.service;

import com.github.pagehelper.PageInfo;
import com.zc.mall.vo.OrderVo;
import com.zc.mall.vo.ResponseVo;

/**
 * @author 曾川
 * @version 1.0.0
 * @ClassName IOrderService.java
 * @Description 订单接口
 * @createTime 2021年06月16日 17:12:00
 */
public interface IOrderService {

    /**
     * 创建订单
     * @param uid
     * @param shippingId
     * @return
     */
    ResponseVo<OrderVo> create(Integer uid, Integer shippingId);


    /**
     * 订单列表
     * @param uid
     * @param pageSize
     * @param pageNum
     * @return
     */
    ResponseVo<PageInfo> list(Integer uid, Integer pageSize ,Integer pageNum);

    /**
     * 订单详情
     * @param uid
     * @param orderNo
     * @return
     */
    ResponseVo<OrderVo> detail(Integer uid, Long orderNo);


    /**
     * 订单取消
     * @param uid
     * @param orderNo
     * @return
     */
    ResponseVo cancel(Integer uid, Long orderNo);
}
